{% extends "base.html" %}
{% load staticfiles %}
{% block title %}我要竞选{% endblock %}
{% block content %}
<div class="row text-center vertical-middle-sm">
    {% if error_message %}
    <p>{{ error_message }}</p>
    {% endif %}
    <form method="post">
        {% csrf_token %}
        <p>我（{{ username }}）想竞选</p>
        <label><input type="radio" name="position" value="会长">会长</label>
        <label><input type="radio" name="position" value="副会长">副会长</label>
        <label><input type="radio" name="position" value="技术部-正/副部长">技术部-正/副部长</label>
        <label><input type="radio" name="position" value="组织部-正/副部长">组织部-正/副部长</label>
        <label><input type="radio" name="position" value="宣传部-正/副部长">宣传部-正/副部长</label>
        <label><input type="radio" name="position" value="创新部-正/副部长">创新部-正/副部长</label>
        <label><input type="radio" name="position" value="秘书部-正/副部长">秘书部-正/副部长</label><br>
        <input type="submit" value="提交">
    </form>
</div>

<script>
    if ( window.history.replaceState ) {
        window.history.replaceState( null, null, window.location.href );
    }
</script>

{% endblock %}